package com.heima.domain;

//public class Students implements Comparable<Students>{
public class Students<Students>{
    public String name;
    public int age;
    public double score;

    public Students() {
    }

    public Students(String name, int age, double score) {
        this.name = name;
        this.age = age;
        this.score = score;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return "Students{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", score=" + score +
                '}';
    }


//    @Override
//    public int compareTo(Students o) {
//        int result= (int) (o.score-this.score);
//        result=result==0?this.age-o.age:result;
//        return result;
//    }
}
